package com.jzo2o.customer.controller.operation;


import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AgencyCertification;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("OpCertificationAuditController")
@RequestMapping("/operation/agency-certification-audit")
@Api(tags = "运营端 - 机构认证信息相关接口")
public class OpCertificationAuditController {


    @Resource
    private IAgencyCertificationService agencyCertificationService;


    //http://localhost:3000/api/customer/operation/agency-certification-audit
    // /page?isAsc1=false&orderBy1=createTime&pageNo=1&pageSize=10&_t=1735228275361
    @GetMapping("/page")
    @ApiOperation("获取机构认证信息列表")
    public PageResult<AgencyCertification> page(AgencyCertificationAuditPageQueryReqDTO agencyCertificationAuditPageQueryReqDTO){
        PageResult<AgencyCertification>  pageResult= agencyCertificationService.getPage(agencyCertificationAuditPageQueryReqDTO);
        return pageResult;
    }
}
